"""
Definition of urls for admin_user.
"""

from django.urls import path
from . import views

urlpatterns = [
    path('version', views.version),                         # 版本号
    path('login', views.LoginView.as_view()),               # 登录
    path('logout', views.LogoutView.as_view()),             # 注销
    path('userinfo', views.UserInfoView.as_view()),         # 用户信息
    path('password', views.ResetPasswordView.as_view()),    # 重置密码
    path('captcha', views.captcha_refresh),                 # 刷新验证码
    path('captcha/image/<str:key>', views.captcha_image, name='captcha-image', kwargs={'scale': 1}),
    path('captcha/image/<str:key>@2', views.captcha_image, name='captcha-image-2x', kwargs={'scale': 2}),
]